-
-
Notifications
You must be signed in to change notification settings - Fork 47.8k
Feature/apriori association rules #12956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Feature/apriori association rules #12956
Conversation
c3297f0
to
68a201c
Compare
95faadd
to
eca4fdb
Compare
I’ve added a new custom Apriori algorithm implementation that:
✔️ All pre-commit and CI checks are passing. Could someone please review and validate the code for merging? |
فك بند |
analysis, aims to discover interesting relationships or associations among a set of For example, Apriori Algorithm states: "If a customer buys item A and item B, then they
|
1 similar comment
analysis, aims to discover interesting relationships or associations among a set of For example, Apriori Algorithm states: "If a customer buys item A and item B, then they
|
Yeah, that’s what Apriori does, but I don’t understand the rest of the comment. |
…lift)
Describe your change:
This pull request adds a Custom Apriori algorithm implementation that finds frequent itemsets and generates association rules using support, confidence, and lift.
The implementation is inspired by the existing Apriori algorithm in the repo but adds:
1 - Support, confidence, and lift calculations for association rules.
2 - Confidence and lift as separate class methods for clarity and reuse.
3 - A load_data() example for demonstration and doctest purposes.
4 - Proper filtering of rules using minimum support, confidence, and lift thresholds.
References:
Wikipedia: Apriori algorithm
Example dataset: included in load_data() function for doctest.
Checklist: